package collector.app.nexd.com.singlecollection.presenter.setting;


import java.util.List;

import collector.app.nexd.com.singlecollection.model.CollectConfig;

/**
 * Created by xun on 2016/8/11.
 */
public class SettingPresenter implements SettingContract.Presenter {
    private SettingContract.View settingView;

    public SettingPresenter(SettingContract.View settingView) {
        this.settingView = settingView;
    }


    @Override
    public void init() {

    }

    @Override
    public void submitMsg(List<CollectConfig> collectConfigs) {
        if (collectConfigs != null && collectConfigs.size() > 0) {
            settingView.startActivity();
            settingView.printLog(collectConfigs.toString());
        } else {
            settingView.showToast("必须填写用户配置");
        }
    }
}
